import com.github.pagehelper.PageHelper;
import com.qf.dao.Student2Dao;
import com.qf.util.MyBatisUtils;
import org.junit.Test;

import java.awt.print.Pageable;

/*
 *@Description:
 *@author:刘哥
 *@Date:20:47 2022/7/7
 */
public class Sdemo {
    @Test
    public  void Test01(){
        try {
            Student2Dao student2Dao = MyBatisUtils.getMapper(Student2Dao.class);
            PageHelper.startPage(1,2);
            System.out.println(student2Dao.select("xw"));
            MyBatisUtils.commit();
        } catch (Exception e) {
            e.printStackTrace();
            MyBatisUtils.rollback();
        }
    }
}
